package com.saishi.dao;

import com.saishi.entity.Book;

import java.sql.SQLException;
import java.util.List;

public interface BookDao {
    List<Book> allQuery() throws SQLException;

    Book query(int bookid) throws SQLException;

    int insert(Book book) throws SQLException;

    int update(Book book) throws SQLException;

    int delete(int bookid) throws SQLException;
}
